package com.dgutnw.yeziyin.sbexp;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.event.SpringApplicationEvent;
@SpringBootApplication
public class App {

    public static void main(String[] args){
        SpringApplication.run(App.class,args);
    }

    static class CustomCommandLineRunner implements CommandLineRunner {
        @Override
        public void run(String... args){
   
            System.out.println("This is CustomCommandLineRunner...\n" +
                    "实验二：利用SB的自动配置特性实现动态注册组件...");
        }

    }
}
